package com.xx.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

public class Books implements Serializable {
    @Serial
    private static final long serialVersionUID = -7956055671608541414L;

    private int id;

    private String bookName;

    private String author;

    private Date time;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bookName='" + bookName + '\'' +
                ", author='" + author + '\'' +
                ", time=" + time +
                '}';
    }
}
